package com.example.h1nson.realphotography;

import android.test.InstrumentationTestCase;

import com.example.h1nson.realphotography.asyncTask.CommentAsyTask;
import com.example.h1nson.realphotography.interface_photo.OnDataFinishedListener;

import org.json.JSONObject;

/**
 * Created by H1nson on 2016/5/25.
 */
public class MainTest extends InstrumentationTestCase {
    public void test(){
        JSONObject jsonObject = new JSONObject();
        CommentAsyTask CommentAsyTask = new CommentAsyTask(jsonObject);
        CommentAsyTask.setOnDataFinishedListener(new OnDataFinishedListener() {
            @Override
            public void onDataSuccessfully(Object data) {
                System.out.println("success:"+data);
            }

            @Override
            public void onDataFailed() {
                System.out.println("fail");
            }
        });
        CommentAsyTask.execute();

    }
}
